<?php /* Smarty version 2.6.26, created on 2010-06-02 14:03:55
         compiled from shop_first_page.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'load_presentation_object', 'shop_first_page.tpl', 2, false),)), $this); ?>
<?php echo smarty_function_load_presentation_object(array('filename' => 'shop_first_page','assign' => 'obj'), $this);?>
  
<div class="releases">  
    <div class="title">
        Latest reslease
    </div>     
    <?php if ($this->_tpl_vars['obj']->mLatestReleases): ?>
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['obj']->mLatestReleases) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>   
         <div class="release">
            <img src="<?php echo $this->_tpl_vars['obj']->mLatestReleases[$this->_sections['i']['index']]['thumbnail']; ?>
" alt="album_cover" /><br />
            <?php echo $this->_tpl_vars['obj']->mLatestReleases[$this->_sections['i']['index']]['name']; ?>
<br />
            <?php echo $this->_tpl_vars['obj']->mLatestReleases[$this->_sections['i']['index']]['title']; ?>
  
         </div>
        <?php endfor; endif; ?> 
    <?php endif; ?>        
    <div style="clear: both;"></div>
</div>               
<div class="releases">
    <div class="title">
        Expected reslease
    </div>
    <?php if ($this->_tpl_vars['obj']->mExpectedReleases): ?>    
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['obj']->mExpectedReleases) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>   
         <div class="release">
            <img src="<?php echo $this->_tpl_vars['obj']->mExpectedReleases[$this->_sections['i']['index']]['cover']; ?>
" alt="album_cover" /><br />
            <?php echo $this->_tpl_vars['obj']->mExpectedReleases[$this->_sections['i']['index']]['name']; ?>
<br />
            <?php echo $this->_tpl_vars['obj']->mExpectedReleases[$this->_sections['i']['index']]['title']; ?>
<br />  
            Expected: <font class="expected_date"><b><?php echo $this->_tpl_vars['obj']->mExpectedReleases[$this->_sections['i']['index']]['expected_date']; ?>
</b></font>
         </div>
        <?php endfor; endif; ?> 
    <?php else: ?>
        We are not expecting any new release
    <?php endif; ?>
    <div style="clear: both;"></div>
</div>                           
<div class="special_prices">
    <div class="title">
        Price killers
    </div>
    <?php if ($this->_tpl_vars['obj']->mSpecialDiscounts): ?>     
        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['obj']->mSpecialDiscounts) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>   
         <div class="release">
            <img src="<?php echo $this->_tpl_vars['obj']->mSpecialDiscounts[$this->_sections['i']['index']]['thumbnail']; ?>
" alt="album_cover" /><br />
            <?php echo $this->_tpl_vars['obj']->mSpecialDiscounts[$this->_sections['i']['index']]['name']; ?>
<br />
            <?php echo $this->_tpl_vars['obj']->mSpecialDiscounts[$this->_sections['i']['index']]['title']; ?>
<br />  
            <font class="old_price">&#8364;<?php echo $this->_tpl_vars['obj']->mSpecialDiscounts[$this->_sections['i']['index']]['price']; ?>
</font> <font class="new_price"><b>&#8364;<?php echo $this->_tpl_vars['obj']->mSpecialDiscounts[$this->_sections['i']['index']]['discounted_price']; ?>
</b></font>
         </div>
        <?php endfor; endif; ?>
    <?php else: ?>           
        No special offers you cheap ass motherfucker. Pay full price instead!
    <?php endif; ?>
</div>     